package com.sunday.common.netty.e8_Handlerorder.client;


import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.handler.codec.string.StringDecoder;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class HandlerOrderTcpClientChannel extends ChannelInitializer {

    @Override
    protected void initChannel(Channel ch) throws Exception {
        ChannelPipeline channelPipeline = ch.pipeline();
        channelPipeline
                .addLast(new StringDecoder())
                .addLast(new HandlerOrderTcpClientHandler());
    }
}
